#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
验证码
"""

import random


random_num1 = range(65, 91)
random_num2 = range(97, 122)
random_list = list()
random_list.extend(list(random_num1))
random_list.extend(list(random_num2))


def get_verification_code():
    """
    生成6位随机大小写字母
    :return: 六位大小写字母
    """
    num = random.sample(random_list, 6)
    for item in range(len(num)):
        num[item] = chr(num[item])
    return ''.join(num)
